package cn.mcch.investigator.viewdelegate;

import android.support.v4.view.ViewPager.OnPageChangeListener;

/**
 * Created by Administrator on 2016/12/16.
 */
public interface IMainViewDelegate {

    /**
     * 打开或关闭drawerlayout
     */
    void toogle();

    /**
     * 设置viewpager缓存页数
     * @param limit
     */
    void setOffscreenPageLimit(int limit);

    /**
     * 跳转到viewpager指定的item
     * @param position
     */
    void setCurrentItem(int position);

    /**
     * 判断drawer是否打开
     * @return
     */
    boolean isDrawerOpen();
}
